package com.ntd.study.modular.hutool.proxy;

import cn.hutool.aop.ProxyUtil;
import ntd.util.UtilLog;

/**
 * hutool 代理使用
 *
 * @author liuwenju
 * @date 2021/4/16
 */
public class StudyProxy {

    public static void main(String[] args) {
        StudyProxy studyProxy = ProxyUtil.proxy(new StudyProxy(), new TimeIntervalAspect());
        studyProxy.proxyTest();
    }

    public void proxyTest() {
        UtilLog.info("代理测试！");
    }
}
